package com.hksj.data.thing;

import com.hksj.data.event.WriteDataEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

/**
 * @author zengke
 * @version 1.0
 * @see DataService
 * @since 2025/08/14 19:05
 */

@Component
public class DataService {

    @Autowired
    private ApplicationEventPublisher publisher;

    public void write(RawData data){

        //发布存储的消息
        publisher.publishEvent(new WriteDataEvent(data));
    }


    
}
